package main

import (
    "net/http"
)

func main() {
    // 传入的模式字符串为“/”，所有请求的 URI 都能与之匹配
    http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("hello, world"))
    })
    http.ListenAndServe(":8080", nil)
}
